



public class User {
    private int id;
    private String userName;
    private String password;
    private String email;
    private String firstName;
    private String middleName;
    private String lastName;
    private String passwordType;
    private String dataLanguage;

    public String getDataLanguage() {
        return dataLanguage;
    }

    public void setDataLanguage(String dataLanguage) {
        this.dataLanguage = dataLanguage;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public String getFirstName() {
        return firstName;
    }

    public void setFirstName(String firstname) {
        this.firstName = firstname;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getLastName() {
        return lastName;
    }

    public void setLastName(String lastname) {
        this.lastName = lastname;
    }

    public String getMiddleName() {
        return middleName;
    }

    public void setMiddleName(String middlename) {
        this.middleName = middlename;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getPasswordType() {
        return passwordType;
    }

    public void setPasswordType(String passwordtype) {
        this.passwordType = passwordtype;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String username) {
        this.userName = username;
    }


    public User(){
        this(45,"Donatello","1234z","rosen@abv.bg","Rosen","Kirilov",
                "Marchev","md5","bg");

    }

    public User(int id, String userName,String password, String email,
            String firstName,String middleName,String lastName,
            String passwordType,String dataLanguage){
        this.id=id;
        this.userName=userName;
        this.dataLanguage=dataLanguage;
        this.email=email;
        this.firstName=firstName;
        this.lastName=lastName;
        this.middleName=middleName;
        this.password=password;
        this.passwordType=passwordType;


    }


    public void online(){
        System.out.println("\nUser:"+getUserName()+"\n with id:"
                 +getId()+"\n datalanguage:" +getDataLanguage()+"\n is online!\n");
    }


    public void offline(){
        System.out.println("\nUser:"+getUserName()+"\n with id:"
                 +getId()+"\n Datalanguage:" +getDataLanguage()+"\n logout of "
                 + "the system!\n");
    }
    


}
